<?php
/*
 * roomsync.php
 * - remote room status update, to synchronize 5th and 6th floor rooms between S1 and S2 
 */
 
if (isset($_GET['dn']) && isset($_GET['st'])) {
	$doorname = $_GET['dn'];
	$status = $_GET['st'];
	$now = date('Y-m-d H:i:s');
	$sql = " update rooms set status_id=$status 
			where door_name='$doorname'
			";
	mysql_query($sql);
}
?>